﻿#include "MyVector.h"
#include <vector>
int main()
{
	Ysz::vector<string> s;
	s.push_back("xxxxx");
	s.push_back("yyyyy");
	s.push_back("zzzzz");
	
	s.push_back("hhhhh");
	Ysz::vector<string> s2(s);
	//s2 = s;
	s.insert(s.end(), "ai");
	//Ysz::vector<int>a;
	int arr[] = { 1,23,45,6,48,13,5 };
	int n = sizeof(arr) / sizeof(arr[0]);
	Ysz::vector<int>c(arr,arr+n);
	
	//const std::vector<int>a(10, 3);
	//Ysz::vector<int>b(a);
	//b.resize(2, 0);
	//b = a;
	//a.reserve(5);
	/*a.push_back(1);
	a.push_back(2);
	a.push_back(3);
	a.push_back(4);
	a.push_back(5);
	a.erase(a.begin()+3);*/
	//a.insert(a.begin()+3,9);
	//a.pop_back();
	//a.pop_back();
	//a.pop_back();
	//a.pop_back();
	//a.pop_back();
	//a.pop_back();
	/*int arr[] = { 1,23,45,6,48,13,5 };
	for (auto& x: arr)
	{

	}*/
	/*cout << c[n-2] << endl;
	c[n - 2] = 6;
	cout << c[n - 2] << endl;
	cout << s[0] << endl;
	s[0] = "find the flame";
	cout << s[0] << endl;

	for (const auto& x: s)
	{
		cout << x << ' ';
	}
	cout << endl;

	for (const auto& x : s2)
	{
		cout << x << ' ';
	}
	cout << endl;*/

	Ysz::vector<size_t>v(10, 10u);
	/*for (auto& x : v)
	{
		cout << x << endl;
	}*/
	return 0;
}
